package hash;

/**
 * Created with IntelliJ IDEA.
 * Description: hash方法 Test
 * User:周次煜
 * Date: 2024-04-22
 * Time：10:17
 */
public class TestHash {
    public static void main(String[] args) {

        HashBucket hb=new HashBucket();
        hb.put(11,13);
        hb.put(21,45);
        hb.put(94,66);
        hb.put(104,88);
        hb.put(114,99);
        hb.put(4,0);
        hb.put(19,87);
        hb.put(20,1000);
        hb.put(57,10);

        System.out.println("======== 筛选数据 =========");
        System.out.println(hb.get(114));
        System.out.println(hb.get(4));

        System.out.println("========= 删除数据 ========");
        System.out.println(hb.remove(11));

        System.out.println(hb.remove(104));
        System.out.println(hb.remove(114));

    }
}
